<?php
include_once '../web_inc.php';
include_once ROOT_PATH.'/config/db_conn.php';
include_once 'inc/gy_info_class.php';


$fen=new getInfo_gy();

$action=$_GET[action];

$title=$_POST['title'];
$class=$_POST['class'];
$xj=$_POST[xj];
$price=$_POST[price];
$img=$_POST[img_thumb];
$content1=$_POST[content1];
$school="1";//$_SESSION[sid];
$user="2";//$_SESSION[name]获得id;
$qq=$_POST[qq];
$tel=$_POST[tel];
$last=$_POST[lasttime];

$time=strtotime(date("Y-m-d h:i:s"));
$lasttime=$last*24*60*60;
$endtime=$time+$lasttime;
$fen->gyAdd($title,$class,$xj,$price,$img,$content1,$school,$user,$qq,$tel,$time,$endtime);




/*
  ***
  ***生成日志,待添加
  ***
*/


?>